
// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const routes = [
  {
    path: 'curd/query',
    name: 'curd-query-index',
    meta: {
      title: '查询设计器',
      auth: true,
      cache: true
    },
    component: _import('curd/query')
  },
  {
    path: 'curd/form',
    name: 'curd-form-index',
    meta: {
      title: '表单设计器',
      auth: true,
      cache: true
    },
    component: _import('curd/form')
  },
  {
    path: 'curd/entity',
    name: 'curd-entity-index',
    meta: {
      title: '实体模型',
      auth: true,
      cache: true
    },
    component: _import('curd/entity')
  }
]

export const curdRoutes = routes
